#pragma once

#include "QRWCreateCurveWidget.h"
#include "ui_CreatCircleWidget.h"

QT_BEGIN_NAMESPACE
namespace Ui { class CreatCircleWidgetClass; };
QT_END_NAMESPACE

class MainWindow;
class ShapeOperation;

class CreatCircleWidget : public QRWCreateCurveWidget
{
	Q_OBJECT

public:
	CreatCircleWidget(MainWindow* inMainWindow, ShapeOperation* inOperation = nullptr, QWidget* parent = nullptr);
	~CreatCircleWidget();
protected:

	void onPosChanged();

	virtual bool eventFilter(QObject* obj, QEvent* event) override;
	virtual void OnPickPosition(const gp_Pnt& inPosition) override;
	virtual class ShapeOperation* GetOperation() override;
	virtual void GenerateFeatureShapeForCacheActor() override;
	virtual void Reset() override;

	void UpdateInner();
private:
	Ui::CreatCircleWidgetClass *ui;

	RWTripleFloatInput* m_startPnt;
    RWTripleFloatInput* m_tangentPnt;
	RWTripleFloatInput* m_endPnt;
};
